//
//  ProfileViewCell.m
//  DigiOps
//
//  Created by app on 2018/8/6.
//  Copyright © 2018年 俞渊华. All rights reserved.
//

#import "ProfileViewCell.h"

@implementation ProfileViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.contentView setBackgroundColor:XMColor(241, 245, 247)];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (instancetype)cellWithTableView:(UITableView *)tableView {
    // 创建cell
    static NSString *ID = @"ProfileViewCell";
    ProfileViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    
    if (cell == nil) {
        cell = [[NSBundle mainBundle] loadNibNamed:@"ProfileViewCell" owner:nil options:nil].lastObject;
    }
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}
-(void)layoutSubviews{
    [super layoutSubviews];
//    [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.top.equalTo(self).offset(0);
//        make.right.equalTo(self).offset(0);
//        make.bottom.mas_equalTo(self.phoneView.mas_top).offset(0);
//        make.height.mas_equalTo(@0.5);
//    }];
//    
//    [self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self).offset(0);
//        make.right.equalTo(self).offset(0);
//        make.bottom.mas_equalTo(self.mas_bottom).offset(0);
////        make.right.equalTo(self).offset(-20);
//        make.height.mas_equalTo(@50);
//    }];
}
@end
